package com.sxpi.controller;

import com.sxpi.model.vo.UserRoleVo;
import com.sxpi.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/userRole")
public class UserRoleController {

    @Autowired
    private UserRoleService userRoleService;


    /**
     * 根据店铺id获取店铺管理员
     * @param storeId
     * @return
     */
    @GetMapping("/getStore/{storeId}")
    public UserRoleVo getStore(@PathVariable Long storeId) {
        return userRoleService.getStore(storeId);
    }
} 